<%-- <%@page import="com.founder.uim.xdk.AppUser"%>
<%@page import="com.founder.uim.xdk.AppGroup"%>
<%@page import="com.founder.uim.xdk.AppFuncPermission"%>
<%@page import="com.founder.zt.utils.ZTUtil"%>--%>
<%@page import="com.founder.client.UrlConstant"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%-- <%
long appId = ZTUtil.getZtAppId();
AppUser user = ZTUtil.getCurrentUser(request);
boolean isAdmin = ZTUtil.isAdmin(user.getLoginname());
AppFuncPermission[] rootFuncPerms = isAdmin ? UimUtil.getChildFuncPermissions(appId, 0) : UimUtil.getUserChildFuncPermissions(appId, 0, user.getId());
AppGroup[] groups = UimUtil.getOrganization(user.getId());
if(groups.length > 0){
	String guid = (String)groups[0].getAttrMap().get("GUID");
	String departmentid = (String)groups[0].getAttrMap().get("DEPARTMENTID");
	//System.out.println(guid+","+departmentid);
}
boolean isAreaManagerRole = UimUtil.hasRole(appId, user.getId(), 4);//是否区域管理员
String identifyName = "";
String identify = user.getAttrMap().get("IDENTIFY") == null?"":user.getAttrMap().get("IDENTIFY").toString();
if("0".equals(identify)){
	identifyName = "学生";
}else if("1".equals(identify)){
	identifyName = "教师";
}else{
	identifyName = "其他";
}
if(groups.length > 0){
	identifyName = groups[0].getName() + "("+identifyName+")";
}
%> --%>
<%
/**
获取用户信息 userId 是用户唯一标识
data是用户对象的json数据
*/
	String userId = (String) session.getAttribute("userId");
	System.out.println(userId);
	String data = (String) session.getAttribute("data");
	System.out.println(data);
	String loginurl = UrlConstant.URL_LOGIN;
	System.out.println(loginurl);
%>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

 <script type="text/javascript"
	src="//cdnjscn.b0.upaiyun.com/libs/jquery/2.1.1/jquery.min.js"></script>

</head>

<body>
<!-- 数据处理 start -->
	<script type="text/javascript">
    
    var userId = "<%= userId %>";
    var data = "<%= data %>";
 	alert(data);
 	alert(userId);
			 if(userId == "null"){
				 window.location.href = "<%= loginurl %>"; 
				 
 			 }else{
 				/* <! 自定义配置 --> */ 
			 }		 
    </script>
<!-- 数据处理 end -->


	<div class="top-header">
		<div class="logo"></div>
		<div class="timeBar">
			<span id="dateTips"></span>
		</div>
		<a class="userTips" id="userTips" href="#userInfo" onclick=""> <img
			src="images/user.png" width="20px" height="20px" /> <%-- <span>	 欢迎您<%=user.getName() %> </span> --%>
		</a>
	</div>
	<div class="left-navBar" id="left-navBar">
		<div class="left-navBar-top"></div>
		<ul class="sys_menu" id="sys_menu">
		</ul>
	</div>
	<div id="easyui-tabbar" class="easyui-tabs rightMainBar">
		<div class="indexpage" id="indexpage"
			title="&nbsp;&nbsp;首&nbsp;页&nbsp;&nbsp;">
			<image src="images/welcome.png"
				style="height:300px;margin-top:150px;"></image>
			<div class="welcome">欢迎使用,安徽公安职业学院基础信息管理系统!</div>
		</div>
	</div>

	<!--EasyUI 弹出窗口,子模块调用 -->
	<div id="popup_dlg" style="font-size:13px;border: 0px; padding: 0px;">
	</div>

	<div class="bottom-footer" id="bottom-footer">
		<span>Copyright 2017 安徽公安职业学院 版权所有
			&nbsp;&nbsp;&nbsp;&nbsp;技术支持:&nbsp&nbsp方正国际</span>
	</div>
	<%
	 session.removeAttribute ("userId");
	 
	  session.removeAttribute("data");
	 
	%>
</body>

</html>